/*
 * @Author: your name
 * @Date: 2021-01-27 13:10:14
 * @LastEditTime: 2022-08-17 14:18:00
 * @LastEditors: Please set LastEditors
 * @Description: 处理截屏,上传滚动条 页面显示
 * @FilePath: \assist\src\store\modules\screen\screen.module.js
 */

const screenMo = {
  namespaced: true,
  state: () => ({
    isScreen: false,
    isProgress: false,
    isMark: false, // 是否是标注
    isARLableDelete: false, // 删除空间标注
    isWhiteShow: false, // 白板显示
    isWhiteTip: false, // 提示语
    isWhiteImg: false, // 白板导入图片
    proNum: 0
  }),
  getters: {
    isScreen (state) {
      return state.isScreen
    },
    isProgress (state) {
      return state.isProgress
    },
    isMark (state) {
      return state.isMark
    },
    isARLableDelete (state) {
      return state.isARLableDelete
    },
    isWhiteShow (state) {
      return state.isWhiteShow
    },
    isWhiteTip (state) {
      return state.isWhiteTip
    },
    isWhiteImg (state) {
      return state.isWhiteImg
    },
    getProNum (state) {
      return state.proNum
    }
  },
  mutations: {
    changeScreen (state, boo) {
      state.isScreen = boo
    },
    changeMark (state, boo) {
      state.isMark = boo
    },
    changeARLableDelete (state, boo) {
      state.isARLableDelete = boo
    },
    changeWhiteShow (state, boo) {
      state.isWhiteShow = boo
    },
    changeWhiteTip (state, boo) {
      state.isWhiteTip = boo
    },
    changeWhiteImg (state, boo) {
      state.isWhiteImg = boo
    },
    changeProgress (state, boo) {
      state.isProgress = boo
    },
    changeProNum (state, num) {
      state.proNum = num
    }
  },

  actions: {
    changeProNumAction ({ commit }, num) {
      commit('changeProNum', num)
    }
  }
}
export default screenMo